package com.chuyu.cy.contants;

import lombok.Getter;

/**
 * @author: 周小白
 * @date: 2023-11-12 10:35
 **/
@Getter
public enum ResponseCodeEnum {

    SYSTEM_ERROR(500, "系统错误，请稍后重试"),
    NO_PARAM(406, "参数为空"),
    ERROR_PARAM(407, "参数错误");

    private int code;
    private String message;

    ResponseCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
